widget: propagate scale factor upon reparenting a widget
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 9 Jan 2017 00:11:29 +0000 (00:11 +0000)
committerDaniel Boles <dboles@src.gnome.org>
Sat, 18 Feb 2017 02:53:57 +0000 (02:53 +0000)
commit72801a27eba06c542136aee74f3af70db5039ac7
tree777b91140d59cdf294d1f9aae5df03d8d87d9f2e
parent1a8a35f3478a2ac6cd8d0c5860ec108e3316fa52
widget: propagate scale factor upon reparenting a widget

When a widget is created, its default scale is the scale of the
primary screen (for instance 2). But once parented to another widget
its scale factor should be the one of its parent (if parented to a
widget on a screen at scale factor 1, it should be 1).

The problem is that we don't emit the notify::scale-factor signal when
reparenting happens.

https://bugzilla.gnome.org/show_bug.cgi?id=776821
gtk/gtkwidget.c